package com.gxa.web_admin.controller.lx;

import com.gxa.common.vo.R2;
import com.gxa.modules.service.lx.OrderActivistService;
import com.gxa.modules.service.lx.OrderManageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@Api(value = "订单维权",tags = "订单维权")
@RequestMapping("/orderActivist")
public class OrderActivistController {

    @Autowired(required = false)
    private OrderActivistService orderActivistService;

    @PostMapping(value = "/queryActivistOrderList")
    @ApiOperation(value = "维权订单查询接口",notes = "维权订单查询", response = R2.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ResponseBody
    public R2 queryActivistOrderList(@RequestBody Map map){

        return orderActivistService.queryActivistOrderList(map);
    }

    @PostMapping(value = "/queryActivistInfo")
    @ApiOperation(value = "查询信息接口",notes = "查询信息", response = R2.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ResponseBody
    public R2 queryActivistInfo(@RequestBody Map map){

        return orderActivistService.queryActivistInfo(map);
    }
//
    @PostMapping(value = "/activistChange")
    @ApiOperation(value = "修改维权信息接口",notes = "修改维权信息", response = R2.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ResponseBody
    public R2 activistChange(@RequestBody Map map){

        return orderActivistService.activistChange(map);
    }




}
